package com.itljm.cxrMarket.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itljm.cxrMarket.entity.SysUser;
import com.itljm.cxrMarket.entity.dto.HomeCountDataDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper extends BaseMapper<SysUser> {
    SysUser selectUser(@Param("username") String username, @Param("password") String password);
    List<SysUser> selectUserPage(Page<SysUser> page, @Param("ew") Wrapper<SysUser> entityWrapper);
    SysUser selectUserById(Long userId);
    SysUser getUserByOpenid(String openId);
    HomeCountDataDTO getHomeCountData();
    /**
     * 批量删除用户
     */
    int deleteBatchIds(@Param("list") List<Long> ids);
}
